home *** CD-ROM | disk | FTP | other *** search
File List | 1985-07-12 | 769 b | 26 lines |
- 100 'RAM-Loadable Character Sets on the IBM PC
- 110 'Listing 1
- 120 '
- 130 'Richard Wilton
- 140 'July 1986
- 150 '
- 160 'Notes:
- 170 ' This program demonstrates a rudimentary "software character generator"
- 180 ' for All Points Addressible graphics modes on IBM's Color Graphics
- 190 ' Adapter (CGA).
- 200 '
- 210 DEFINT A-Z
- 220 SCREEN 2 : CLS
- 230 FOR I = 0 TO 3*80 STEP 80 ' rows are 80 bytes apart
- 240 FOR S = &HB800 TO &HBA00 STEP &H200 ' even rows in B800, odd in BA00
- 250 DEF SEG = S
- 260 READ B
- 270 POKE I,B ' store each byte into video buffer
- 280 NEXT S
- 290 NEXT
- 300 PRINT : PRINT
- 310 END
- 320 '
- 330 'dot data which defines the character 'A' ...
- 340 DATA &h18,&h3c,&h66,&h66,&h7e,&h66,&h66,&h66